<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends MY_Controller {
	
	public function index(){	
		$this->title = "Bid-Project";
		$this->load->helper(array('form'));
         //check session
         if($this->session->userdata('cus_login')){
            $session_data = $this->session->userdata('cus_login');
            $this->data['uid'] = $session_data['cust_id'];
            $this->data['username'] = $session_data['username'];
            $this->_render('pages/home');
        }else{
            $this->data['username'] = null;
            $this->_render('pages/home');
        }
	}
	
}